<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib  uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>个人通讯录</title>
		<link href="css/table.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script src="js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
		<script type="text/javascript">
		function addbookuser(){
			var name =$("#name").val();
			if($.trim(name)==''||$.trim(name)=='null'){
				alert("姓名不能为空！");
				return;
			}
			$.post("saveUser_book.action",$("form").serialize(),function(data){
				if(data=='success'){
				alert("操作成功");
				window.close();
				var currentPage=$("#currentPage").val();
				window.opener.page(currentPage);
				}else{
					alert("操作失败");
				}
			});
		}
		</script>
	</head>
	<body>
		<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
  <tbody>
  <tr>
    <td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
    <td style="background: url('image/wsoa_window_002.gif');"><table border="0" cellpadding="0" cellspacing="0">
      <tbody><tr>
        <td align="center" style="background: url('image/wsoa_window_002.gif');" width="10"><img src="image/center_19.gif"></td>
        <td align="center" style="background: url('image/wsoa_window_002.gif');"></td>
        <td>个人办公 &gt; 我的办公桌 &gt; 个人通讯录 </td>
        </tr>
    </tbody>
    </table></td>
    <td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
  </tr>
  <tr>
    <td style="background: url('image/wsoa_window_010.gif');"  width="1">&nbsp;</td>
    <td>
<input type="hidden" id="currentPage" value="${currentPage}">
<form   method="post" action="">
<input type="hidden" name="book.id" value="${book.id}">
<div id="top"></div>
<div id="bottom">
	<table style="width: 100%;" align="center" border="0" height="15">
		<tbody><tr>
			<td></td>
		</tr>
	</tbody></table>
	<table style="width: 100%;" class="table5" align="center">
		<tbody>
		<tr>
			<td class="table5 bgcolor5" align="right" width="80"><font color="red">*</font>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名 </td>
			<td colspan="2" class="table5" align="left">&nbsp;<input id="name" name="book.name" maxlength="25" value="${book.name}" style="width: 200px;" title="该输入项的最大长度是25" type="text"></td>
		</tr>
		<tr>
			<td class="table5 bgcolor5" align="right" width="80">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别 </td>
			<td class="table5" align="left">
			<s:radio list="#{'男':'男','女':'女'}"   name="book.sex"   value="book.sex" theme="simple"></s:radio>
			</td>
			<td class="table5 bgcolor5" align="right" width="80">手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机 </td>
			<td class="table5" align="left">&nbsp;<input name="book.cellphone" value="${book.cellphone}" maxlength="100" style="width: 200px;" title="该输入项的最大长度是100" type="text"></td>
		</tr>
		<tr>
			<td class="table5 bgcolor5" align="right" width="80">所在单位 </td>
			<td class="table5" colspan="3" align="left">&nbsp;<input name="book.unit" value="${book.unit}" maxlength="100" style="width: 508px;" title="该输入项的最大长度是100" type="text"></td>
		</tr>
		<tr>
			<td class="table5 bgcolor5" align="right" width="80">部门/职务 </td>
			<td class="table5" align="left">&nbsp;<input name="book.job" value="${book.job}" maxlength="100" style="width: 200px;" title="该输入项的最大长度是100" type="text"></td>
			<td class="table5 bgcolor5" align="right" width="80">电子邮件 </td>
			<td class="table5" align="left">&nbsp;<input name="book.mail" value="${book.mail}" maxlength="100" style="width: 200px;" title="该输入项的最大长度是100" type="text"></td>
		</tr>
		<tr>
			<td class="table5 bgcolor5" align="right" width="80">电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话 </td>
			<td class="table5" align="left">&nbsp;<input name="book.phone" value="${book.phone}" maxlength="100" style="width: 200px;" title="该输入项的最大长度是100" type="text"></td>
			<td class="table5 bgcolor5" align="right" width="80">MSN帐号 </td>
			<td class="table5" align="left">&nbsp;<input name="book.msn" value="${book.msn}" maxlength="100" style="width: 200px;" title="该输入项的最大长度是100" type="text"></td>
		</tr>
		<tr>
			<td class="table5 bgcolor5" align="right" width="80">QQ&nbsp;&nbsp;号码 </td>
			<td class="table5" align="left">&nbsp;<input name="book.qq" value="${book.qq}" maxlength="100" style="width: 200px;" title="该输入项的最大长度是100" type="text"></td>
			<td class="table5 bgcolor5" align="right" width="80">传真号码 </td>
			<td class="table5" align="left">&nbsp;<input name="book.faxno" value="${book.faxno}" maxlength="100" style="width: 200px;" title="该输入项的最大长度是100" type="text"></td>
		</tr>
		<tr>
			<td class="table5 bgcolor5" align="right" width="80">爱&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;好 </td>
			<td class="table5" align="left">&nbsp;<input name="book.hobby" value="${book.hobby }" maxlength="100" style="width: 200px;" title="该输入项的最大长度是100" type="text"></td>
			<td class="table5 bgcolor5" align="right" width="80">邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;编 </td>
			<td class="table5" align="left">&nbsp;<input name="book.postcode" value="${book.postcode}" maxlength="100" style="width: 200px;" title="该输入项的最大长度是100" type="text"></td>
		</tr>
		<tr>
			<td class="table5 bgcolor5" align="right" width="80">联系地址 </td>
			<td class="table5" colspan="3" align="left">&nbsp;<input name="book.location" value="${book.location}" maxlength="100" style="width: 508px;" title="该输入项的最大长度是100" type="text"></td>
		</tr>
		<tr>
			<td class="table5 bgcolor5" align="right" width="80">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注 </td>
			<td class="table5" colspan="3" align="left">&nbsp;<input name="book.note" value="${book.note}" maxlength="100" style="width: 508px;" title="该输入项的最大长度是100" type="text"></td>
		</tr>
	</tbody></table>
		<table style="width: 100%;" align="center" border="0">
		<tbody><tr><td align="center"><span id="errorId"></span></td></tr>
		<tr>
			<td align="center"><input accesskey="t" value="提交" class="button_02" type="button" onclick="addbookuser()">
			 <input value="取消" accesskey="c" onclick="window.close()" class="button_02" type="button"></td>
		</tr>
	</tbody></table>
</div></form>
					</td>
<td style="background: url('image/wsoa_window_006.gif');"  width="1">&nbsp;</td></tr>
  <tr>
    <td height="1" width="1"><img src="image/wsoa_window_009.gif" height="16" width="14"></td>
    <td style="background: url('image/wsoa_window_008.gif');" height="1"></td>
    <td height="1" width="1"><img src="image/wsoa_window_007.gif" height="16" width="12"></td>
  </tr>
</tbody>
</table>
	</body>
</html>